import { _decorator, Component, instantiate, Node, UITransform } from 'cc';
import { ResManager } from '../../fw/res/ResManager';
import { G_VIEW_SIZE } from '../../Boost';
const { ccclass, property } = _decorator;

@ccclass('Match3Entry')
export class Match3Entry extends Component {
    
    async init(){
        // ResManager.getInstance().loadPrefab("Match3BN","Match3UI",prefab => {
        //     let match3Node = instantiate(prefab);
        //     this.node.addChild(match3Node);
        //     match3Node.getComponent(UITransform).setContentSize(G_VIEW_SIZE.clone());
        // })

        UIManager.getInstance().open(Match3UI)
    }
}


